<?php 
namespace App\Libs;

class FormatResultErrors
{
    const CODE_MAP = [
        'SUCCESS' => ['code' => '100', 'message' => 'success'],
        'SYS.ERR' => ['code' => '101', 'message' => '系统错误', ],
        'SIGN.BIZ_TYPE.INVALID' => ['code' => '103', 'message' => 'biz_type无效', ],
        'WECHAT.WXMINICODE.INVALID' => ['code' => '201', 'message' => 'wxmini_code无效', ],
        'TEMPLATE.ID.INVALID' => ['code' => '202', 'message' => 'template_id非法', ],
        'TRADEDEATIL.ID.INVALID' => ['code' => '202', 'message' => 'id_teadedetail非法', ],
        'TYPE.INVALID' => ['code' => '202', 'message' => 'type非法', ],
        'TEMPLATE.PARAMS.INVALID' => ['code' => '202', 'message' => 'template_params非法', ],
        'TTS.AUDIO.SRC.FAIL' => ['code' => '203', 'message' => '获取audio_src失败', ],
        'ID.MERCHANT.INVALID' => ['code' => '203', 'message' => 'id_merchant非法', ],
        'MERCHANT.NOTFOUND' => ['code' => '204', 'message' => '您不是商户', ],
        'NOTIFY.VOICE.NULL' => ['code' => '205', 'message' => '暂无无语音', ],
    ];
}
